feat(pipeline): add keep-first-think-only toggle for multi-round CoT#2331
Open
MIKAZE3 wants to merge 1 commit into
Open
feat(pipeline): add keep-first-think-only toggle for multi-round CoT#2331MIKAZE3 wants to merge 1 commit into
MIKAZE3 wants to merge 1 commit into
Conversation
Member
|
@MIKAZE3 老哥辛苦再修改一下这几个pr |
Contributor
Author
|
MIKAZE3
force-pushed
the
feat/keep-first-think-only
branch
from
July 16, 2026 09:41
e36f312 to
eae52ca
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…tream interface New '仅保留第一条思维链' option under output.misc, effective only when remove-think is enabled. When on, the first LLM round keeps its chain-of-thought while subsequent tool-call rounds strip CoT. - output.yaml: add keep-first-think-only boolean field - default-pipeline-config.json: add default false - localagent.py: pre-loop uses _strip_think_first_round (=False when keep-first), tool-loop uses raw remove_think (=True) - respback.py: read keep_stream from MessageChunk metadata, pass to adapter via explicit parameter - wecombot.py: reply_message_chunk accepts keep_stream parameter - ws_client.py: push_stream_chunk accepts keep_stream, skips stream_id cleanup when True - all other adapters: accept keep_stream parameter for interface compatibility Replaces the rejected _langbot_pipeline_config side-channel with an explicit keep_stream parameter on the adapter interface.
MIKAZE3
force-pushed
the
feat/keep-first-think-only
branch
from
July 17, 2026 04:53
eae52ca to
7763c2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 / Overview
更改前后对比截图 / Screenshots
检查清单 / Checklist
PR 作者完成 / For PR author
请在方括号间写
x以打勾 / Please tick the box withx项目维护者完成 / For project maintainer